package com.kingyun.gpsinspection.purificationservice.facade.model.iam.scyx;

import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/***
 * 设备故障实体
 */
public class DeviceFault extends BootstrapSearchBean implements Serializable {
    //  故障ID
    private String deviceFaultId;

    //  设备ID
    private String deviceId;

    //  设备内部编码
    private String deviceInnerCode;

    //  企业设备自编码
    private String deviceCode;

    //  设备名
    private String deviceName;

    //  设备类型ID
    private String deviceTypeId;

    //  设备所在组织ID
    private String orgId;

    //  设备厂商ID
    private String manuId;

    //  设备故障时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date instoreTime;

    //  故障描述
    private String faultDescription;

    //  故障附件路径
    private String faultPath;

    //  故障恢复时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date outstoreTime;

    //  设备启用时间
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private Date inuseTime;

    //  创建人ID
    private String creatorId;

    //  创建日期
    private Date createDate;

    //  是否删除 0默认）已经删除
    private Short isDelete;

    //填充字段
    private String creatorName;//创建人姓名
    private String orgName;//所属组织
    private String problemId;//问题Id
    private String manuName;//厂家名称
    private String startTime;//开始时间
    private String endTime;//结束时间
    public String getDeviceFaultId() {
        return deviceFaultId;
    }

    public void setDeviceFaultId(String deviceFaultId) {
        this.deviceFaultId = deviceFaultId == null ? null : deviceFaultId.trim();
    }

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId == null ? null : deviceId.trim();
    }

    public String getDeviceInnerCode() {
        return deviceInnerCode;
    }

    public void setDeviceInnerCode(String deviceInnerCode) {
        this.deviceInnerCode = deviceInnerCode == null ? null : deviceInnerCode.trim();
    }

    public String getDeviceCode() {
        return deviceCode;
    }

    public void setDeviceCode(String deviceCode) {
        this.deviceCode = deviceCode == null ? null : deviceCode.trim();
    }

    public String getDeviceName() {
        return deviceName;
    }

    public void setDeviceName(String deviceName) {
        this.deviceName = deviceName == null ? null : deviceName.trim();
    }

    public String getDeviceTypeId() {
        return deviceTypeId;
    }

    public void setDeviceTypeId(String deviceTypeId) {
        this.deviceTypeId = deviceTypeId == null ? null : deviceTypeId.trim();
    }

    public String getOrgId() {
        return orgId;
    }

    public void setOrgId(String orgId) {
        this.orgId = orgId == null ? null : orgId.trim();
    }

    public String getManuId() {
        return manuId;
    }

    public void setManuId(String manuId) {
        this.manuId = manuId == null ? null : manuId.trim();
    }

    public Date getInstoreTime() {
        return instoreTime;
    }

    public void setInstoreTime(Date instoreTime) {
        this.instoreTime = instoreTime;
    }

    public String getFaultDescription() {
        return faultDescription;
    }

    public void setFaultDescription(String faultDescription) {
        this.faultDescription = faultDescription == null ? null : faultDescription.trim();
    }

    public String getFaultPath() {
        return faultPath;
    }

    public void setFaultPath(String faultPath) {
        this.faultPath = faultPath == null ? null : faultPath.trim();
    }

    public Date getOutstoreTime() {
        return outstoreTime;
    }

    public void setOutstoreTime(Date outstoreTime) {
        this.outstoreTime = outstoreTime;
    }

    public Date getInuseTime() {
        return inuseTime;
    }

    public void setInuseTime(Date inuseTime) {
        this.inuseTime = inuseTime;
    }

    public String getCreatorId() {
        return creatorId;
    }

    public void setCreatorId(String creatorId) {
        this.creatorId = creatorId == null ? null : creatorId.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getOrgName() {
        return orgName;
    }

    public void setOrgName(String orgName) {
        this.orgName = orgName;
    }

    public Short getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Short isDelete) {
        this.isDelete = isDelete;
    }

    public String getProblemId() {
        return problemId;
    }

    public void setProblemId(String problemId) {
        this.problemId = problemId;
    }

    public String getManuName() {
        return manuName;
    }

    public void setManuName(String manuName) {
        this.manuName = manuName;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }
}